// index.js
// const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'

Page({
  data: {
    list: [],
    address: '1860269',
    content: '',
  },
  // import CustomPage from '../../../base/CustomPage'

  // const base64 = require('../../images/base64')
  
  // CustomPage({
  //   onShareAppMessage() {
  //     return {
  //       title: 'cell',
  //       path: 'packageExtend/pages/form/cell/cell'
  //     }
  //   },
    onLoad() {
    },
    // 发送地址输入
    contentChange(e) {
      this.setData({
        address: e.detail.value
      })
    },
    // 发送内容输入
    contentChange(e) {
      this.setData({
        content: e.detail.value
      })
    },
    // 发送信息
    sendSMSInfo () {
    var that = this;
    wx.request({
      url:
        "https://www.ejingyou.cn/ServerHuanwei/CompanyapiBDEapi/Role/sendSMSInfoBDQT?address=" + that.data.address + "&content=" + that.data.content,
      header: {
        "content-type": "application/json", // 默认值
      },
      success: (res) => {
        console.log(res.data)
        wx.showToast({
          title: '发送成功',
          icon: 'success',
          mask: true // 显示透明蒙层
        });
        that.setData({
          list: res.data,
        });
      },
    });
  }
  })
  